import React, { FC } from 'react';
import './index.less';

export interface TagCardProps {
  icon: string;
  title: string;
  num: number;
}

export const TagCard: FC<TagCardProps> = ({
  icon,
  title,
  num,
}) => {
  return (
    <div className='tag-card'>
      <div className='tag-left'>
        <div>{ title }</div>
        <span>{ num }+</span>
      </div>
      <img src={ icon } alt="" />
    </div>
  );
};
